package java_DesignPattern.StructuralPattern.ProxyPattern.StaticProxy;

import java_DesignPattern.StructuralPattern.ProxyPattern.DynamicProxy.jdk.SellTickets;
import java_DesignPattern.StructuralPattern.ProxyPattern.DynamicProxy.jdk.TranStation;

/**
 * 代售点---代理类
 */
public class ProxyPoint implements SellTickets {

    //声明具体类
    private TranStation tranStation = new TranStation();

    @Override
    public void sell() {
        System.out.println("代售点收取服务费用");
        tranStation.sell();
    }
}
